<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <meta name="format-detection" content="telephone=no" />
    <title>我的</title>
    <link rel="stylesheet" href="../../css/reset.css">
    <style>
        body {
            width: 100%;
            background-color: #fff;
            font-size: 0.28rem;
            height: auto;
            -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
            font-family: PingFang SC;
            color: #333333;
            background-color: #f8f8f8;
            box-sizing: border-box;
        }

        .head-title {
            width: 100%;
            height: 0.88rem;
            color: #181818;
            display: flex;
            display: -webkit-flex;
            justify-content: space-between;
            -webkit-justify-content: space-between;
            align-items: center;
            -webkit-align-items: center;
            width: 6.9rem;
            margin: auto;
        }

        .change-me {
            display: flex;
            display: -webkit-flex;
            align-items: center;
            -webkit-align-items: center;
            font-size: 0.28rem;
            color: #181818;
        }

        #img-bg {
            height: 0.85rem;
            border-radius: 0.85rem;
            background: rgba(255, 255, 255, 0.2);
            display: flex;
            display: -webkit-flex;
            align-items: center;
            -webkit-align-items: center;
        }

        #user-img {
            width: 0.44rem;
            height: 0.44rem;
            border-radius: 100%;
        }

        .username {
            margin-left: 0.2rem;
        }

        .toDayCoinPrice {
            margin-top: 1rem;
        }

        .selmoney {
            width: 6.9rem;
            height: 3.3rem;
            background: url("../../image/cardbgx.png") no-repeat center;
            background-size: cover;
            border-radius: 0.1rem;
            color: rgba(24, 24, 24, 0.65);
            display: flex;
            display: -webkit-flex;
            flex-direction: column;
            justify-content: center;
            -webkit-justify-content: center;
            align-items: center;
            -webkit-align-items: center;
            margin: auto;
            margin-top: 0.04rem;
            position: relative;
            padding-top: 0.15rem;
        }

        #renrenLogo {
            position: absolute;
            left: 0.3rem;
            top: 0.23rem;
            width: 1.16rem;
        }

        #sel_money {
            width: 100%;
            height: 0.58rem;
            font-size: 0.3rem;
            display: flex;
            display: -webkit-flex;
            justify-content: center;
            -webkit-justify-content: center;
            align-items: center;
            -webkit-align-items: center;
            position: relative;
            color: rgba(24, 24, 24, 0.65);
        }

        #sel_money span:first-of-type {
            display: inline-block;
            height: 0.58rem;
            line-height: 0.58rem;
            font-size: 0.26rem;
        }

        #mymoeny {
            text-align: right;
            font-size: 0.28rem;
            margin-top: 0.1rem;
        }

        #showEyes {
            height: 0.4rem;
            width: 0.7rem;
            position: absolute;
            right: 17%;
            display: flex;
            display: -webkit-flex;
            justify-content: flex-start;
            -webkit-justify-content: flex-start;
            align-items: center;
            -webkit-align-items: center;
            margin-left: 0.3rem;
        }

        #showEyes img {
            width: 0.54rem;
            height: 0.3rem;
        }

        .showMoney {
            width: 100%;
            display: flex;
            display: -webkit-flex;
            flex-direction: column;
            justify-content: center;
            -webkit-justify-content: center;
            align-items: center;
            -webkit-align-items: center;
            margin-left: 0.2rem;
            margin-top: 0.1rem;
        }

        .midlle-left {
            width: 100%;
            display: flex;
            display: -webkit-flex;
            align-content: center;
            -webkit-align-content: center;
            justify-content: space-between;
            font-size: 0.28rem;
            color: rgba(18, 18, 18, 0.4);
            margin-top: 0.3rem;
            padding: 0 0.9rem;
            box-sizing: border-box;
        }

        .head-about {
            width: 6.9rem;
            background-color: #fff;
            padding: 0 0.25rem;
            font-size: 0.28rem;
            color: #181818;
            box-sizing: border-box;
            display: flex;
            display: -webkit-flex;
            align-items: flex-start;
            flex-direction: column;
            -webkit-align-items: flex-start;
            justify-content: space-between;
            -webkit-justify-content: space-between;
            margin: auto;
            box-sizing: border-box;
            margin-top: 0.2rem;
            border-radius: 0.1rem 0.1rem 0 0;
        }

        .head-about div img {
            margin-right: 0.18rem;
        }

        .showmyMoney {
            width: 100%;
            height: auto;
            display: flex;
            display: -webkit-flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.3rem;
            margin-top: 0.12rem;
        }

        .midlle-rigth {
            width: 100%;
            display: flex;
            display: -webkit-flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.24rem;
            margin-top: 0.2rem;
            box-sizing: border-box;
        }

        .midlle-rigth p {
            width: 50%;
        }

        .midlle-rigth p:last-of-type {
            padding-left: 1.1rem;
        }

        .showmyMoney p {
            width: 50%;
            display: flex;
            display: -webkit-flex;
            align-items: flex-end;
        }

        .showmyMoney p:last-of-type {
            align-items: flex-start;
            padding-left: 1.1rem;
        }

        .showtypeMoney {
            margin-left: 0.2rem;
        }

        .showmyMoney p>span:first-of-type {
            font-family: PingFang-SC-Regular;
            font-weight: 400;
            color: rgba(24, 24, 24, 1);
            font-weight: 540;
        }

        .showmyMoney p>span:last-of-type {
            font-size: 0.24rem;
            font-family: PingFang-SC-Regular;
            font-weight: 400;
            color: rgba(137, 137, 137, 1);
        }

        .showGetCash {
            width: 6.9rem;
            margin-left: calc((100% - 6.9rem) / 2);
            padding: 0 0.25rem;
            box-sizing: border-box;
            background-color: #fff;
            display: flex;
            display: -webkit-flex;
            align-items: center;
            justify-content: space-between;
            -webkit-justify-content: space-between;
            padding-bottom: 0.3rem;
            border-radius: 0 0 0.1rem 0.1rem;
        }

        .headAboutLeft {
            width: 3rem;
            height: 0.74rem;
            font-size: 0.28rem;
            border: 1px solid rgb(218, 218, 218);
            border-radius: 12px;
            display: flex;
            display: -webkit-flex;
            align-items: center;
            justify-content: center;
            border-radius: 0.12rem;
            color: #262626;
            font-weight: 540;
        }

        .headAboutRight {
            width: 3rem;
            height: 0.74rem;
            font-size: 0.28rem;
            display: flex;
            display: -webkit-flex;
            align-items: center;
            justify-content: center;
            border-radius: 0.12rem;
            background-color: #FED203;
            font-weight: 540;
        }

        .shonMypropty {
            width: 6.9rem;
            height: 2.72rem;
            background: #fff;
            border-radius: 0.12rem;
            display: flex;
            display: -webkit-flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: center;
            margin-top: 0.21rem;
        }

        .shonMypropty p {
            width: 6.9rem;
            height: .76rem;
            background: #fff;
            display: flex;
            display: -webkit-flex;
            align-items: center;
            justify-content: flex-start;
            box-sizing: border-box;
            padding-left: 0.27rem;
            font-size: .3rem;
            font-family: PingFang SC;
            font-weight: bold;
            color: rgba(38, 38, 38, 1);
        }

        .shonMypropty ul {
            flex: 1;
            width: 100%;
            display: flex;
            display: -webkit-flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 0.2rem;
        }

        .shonMypropty ul li {
            width: 20%;
            display: flex;
            display: -webkit-flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .shonMypropty ul li img {
            width: 0.97rem;
            height: 0.97rem;
        }

        .shonMypropty ul li span {
            font-size: 0.26rem;
            font-family: PingFang SC;
            font-weight: 500;
            color: #383838;
        }

        .showbhpay {
            width: 100%;
            height: 1rem;
            border-radius: 0.12rem;
            display: flex;
            display: -webkit-flex;
            align-items: center;
            justify-content: space-between;
            background-color: #fff;
            margin: 0.2rem 0;
        }

        .showbhpay {
            width: 100%;
            height: 1rem;
            border-radius: 0.12rem;
            display: flex;
            display: -webkit-flex;
            align-items: center;
            justify-content: space-between;
            background-color: #fff;
            margin: 0.2rem 0;
            padding: 0 0.36rem 0 0.26rem;
            box-sizing: border-box;
        }

        .showbhpay>span {
            display: flex;
            display: -webkit-flex;
            align-items: center;
        }

        .showbhpay>span>img {
            width: 0.36rem;
            height: 0.36rem;
            margin-right: 0.17rem;
        }

        .showbhpay>span>span {
            font-size: 0.28rem;
            font-family: PingFang SC;
            font-weight: 500;
            color: rgba(38, 38, 38);
        }

        .showbhpay button {
            width: 1.8rem;
            height: 0.60rem;
            background-color: rgba(255, 217, 64);
            border-radius: 0.3rem;
            font-size: 0.24rem;
            font-family: PingFang SC;
            font-weight: 500;
            color: rgba(38, 38, 38, 1);
            border: none;
            outline: none;
            display: flex;
            display: -webkit-flex;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
        }

        .showbhpay button img {
            width: 0.13rem;
            height: 0.2rem;
            margin-right: 0.1rem;
        }

        .showbhpay button span {
            height: 0.3rem;
            flex: 1;
            display: flex;
            display: -webkit-flex;
            justify-content: center;
            align-items: center;
        }

        .shonAccount {
            width: 6.9rem;
            height: 2.36rem;
            background: #fff;
            border-radius: 0.12rem;
            display: flex;
            display: -webkit-flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: center;
            margin-top: 0.21rem;
        }

        .shonAccount p {
            width: 6.9rem;
            height: .76rem;
            background: #fff;
            display: flex;
            display: -webkit-flex;
            align-items: center;
            justify-content: flex-start;
            box-sizing: border-box;
            padding-left: 0.27rem;
            font-size: .3rem;
            font-family: PingFang SC;
            font-weight: bold;
            color: rgba(38, 38, 38, 1);
        }

        .shonAccount ul {
            flex: 1;
            width: 100%;
            display: flex;
            display: -webkit-flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 0.2rem;
            padding: 0 0.3rem 0 0;
            box-sizing: border-box;
        }

        .shonAccount ul li {
            width: 20%;
            display: flex;
            display: -webkit-flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .shonAccount ul li img {
            width: 0.52rem;
            height: 0.52rem;
            margin-bottom: 0.14rem;
        }

        .shonAccount ul li span {
            font-size: 0.26rem;
            font-family: PingFang SC;
            font-weight: 500;
            color: #383838;
        }

        .shonAccount ul li span:last-of-type {
            display: inline-block;
            width: 100%;
            height: 0.5rem;
        }

        .shonAccountOther {
            width: 6.9rem;
            height: 4.5rem;
            background: #fff;
            border-radius: 0.12rem;
            display: flex;
            display: -webkit-flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: center;
            margin-top: 0.21rem;
        }

        .shonAccountOther p {
            width: 6.9rem;
            height: .76rem;
            background: #fff;
            display: flex;
            display: -webkit-flex;
            align-items: center;
            justify-content: flex-start;
            box-sizing: border-box;
            padding-left: 0.27rem;
            font-size: .3rem;
            font-family: PingFang SC;
            font-weight: bold;
            color: rgba(38, 38, 38, 1);
        }

        .shonAccountOther ul {
            flex: 1;
            width: 100%;
            display: flex;
            display: -webkit-flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-start;
            margin-top: 0.2rem;
            box-sizing: border-box;
            padding: 0 0.1rem;
        }

        .shonAccountOther ul li {
            width: 25%;
            display: flex;
            display: -webkit-flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .shonAccountOther ul li img {
            width: 0.42rem;
            height: 0.42rem;
            margin-bottom: 0.14rem;
        }

        .shonAccountOther ul li span {
            font-size: 0.26rem;
            font-family: PingFang SC;
            font-weight: 500;
            color: #383838;
        }

        #showRenew {
            width: 0.39rem;
            height: 0.39rem;
            border-radius: 0.2rem 0.2rem 0.2rem 0;
            line-height: 0.39rem;
            text-align: center;
            position: absolute;
            top: -0.1rem;
            right: 0.05rem;
            font-size: 0.2rem;
            background: linear-gradient(90deg, rgba(255, 105, 92, 1), rgba(242, 79, 65, 1));
            color: #ffffff;
        }
    </style>
</head>

<body>
    <p class="toDayCoinPrice"
        style="width:100%;height:0.6rem;background:rgba(255,246,226,1);display: flex;display: -webkit-flex;align-items: center;justify-content: space-between;color: #A18331;font-size: 0.24rem;padding: 0 0.24rem;box-sizing: border-box;">
        <span style="height:0.6rem;display: flex;display: -webkit-flex;align-items: center;flex: 1;">
            <img src="../../image/broceiconx.png" style="width:0.28rem;height:0.28rem;margin-right: 0.13rem;">
            <span class="showMessge"
                style="display: inline-block;width: 5rem;overflow: hidden;white-space: nowrap;text-overflow:ellipsis;">
            </span>
        </span>
        <span style="height:0.6rem;display: flex;display: -webkit-flex;align-items: center;">
            更多 <img src="../../image/moreicon.png" style="width:0.24rem;height:0.24rem;margin-left: 0.08rem;">
        </span>
    </p>
    <div class="shownewbox"
        style="width:100%;height: auto;box-sizing: border-box;padding: 0 0.3rem;margin-top: 0.2rem;">
        <div class="selmoney">
            <div id="sel_money">
                <span style="font-size:0.28rem;">账户总资产折合(BTC)</span>
                <div id="showEyes">
                    <img src="../../image/openax.png" srcset="" id="showImg">
                </div>
            </div>
            <div class="showMoney">
                <span>
                    <span id="changeBtc" style="font-size: 0.48rem;color: #181818;">
                        --
                    </span>
                </span>
                <span id="mymoeny" data-flag="true">
                    <i class="hideYdy">≈ </i><span>--</span>
                </span>
            </div>
            <div class="midlle-left">
                <div>
                    <p style="font-size: 0.24rem;">
                        昨日BTC产出(估算):
                    </p>
                    <span class="myIcomeCny" style="display: flex;display: -webkit-flex;align-items: center;">
                        --
                    </span>
                </div>
                <div>
                    <p style="font-size: 0.24rem;">
                        昨日BHP产出(估算):
                    </p>
                    <span class="myIcomeBhp" style="display: flex;display: -webkit-flex;align-items: center;">
                        --
                    </span>
                </div>
            </div>
            <img src="../../image/logonewsx.png" id="renrenLogo">
        </div>
        <div class="head-about">
            <div class="midlle-rigth">
                <p>
                    可用余额
                </p>
                <p>
                    余额(OTC)
                </p>
            </div>
            <div class="showmyMoney" style="margin-bottom: 0.33rem">
                <p>
                    <span class="myCnyNumber" style="font-size: 0.3rem;">
                        --
                    </span>
                </p>
                <p>
                    <span class="myBcnyNumber" style="font-size: 0.3rem;">
                        --
                    </span>
                </p>
            </div>
        </div>
        <div class="showGetCash">
            <div class="headAboutLeft">
                提现
            </div>
            <div class="headAboutRight">
                充值
            </div>
        </div>
        <div class="shonMypropty">
            <p>
                资产管理
            </p>
            <ul>
                <li class="goPropertyPage">
                    <img src="../../image/iconaxedc.png">
                    <span>
                        我的资产
                    </span>
                </li>
                <li class="goNewmypower"
                    data-param='{"page":"common/headerwin","name":"newmypower_headerwin","param":{"subpage":"mine/newmypower","name":"newmypower","title":"我的合约"}}'
                    style="position: relative;">
                    <img src="../../image/iconbxedcx.png">
                    <span>
                        <span id="showEndState"
                            style="display:inline-block; width: 0.15rem;height: 0.15rem;background-color: red;border-radius: 100%;margin-right: 0.05rem;display: none;"></span>
                        我的合约
                    </span>
                    <b id="showRenew" style="display: none;">
                        续
                    </b>
                </li>
                <li class="goMyincome">
                    <img src="../../image/iconcxedcx.png">
                    <span>
                        算力产出
                    </span>
                </li>
                <li class="go-page"
                    data-param='{"page":"common/headerwin","name":"over_underpower_headerwin","param":{"subpage":"transactionpower/over_underpower","name":"over_underpower","title":"算力转让","powerHeader":"true"}}'>
                    <img src="../../image/icondsxdfx.png">
                    <span>
                        算力转让
                    </span>
                </li>
                <li id="goAgrentSellBuy">
                    <img src="../../image/iconenewajsdla.png">
                    <span>
                        委托代售
                    </span>
                </li>
            </ul>
        </div>
        <div class="showbhpay">
            <span>
                <img src="../../image/iconeqax.png">
                <span>
                    关联BHPay账户
                </span>
            </span>
            <button id="showbuttonText">
                <span class="buttonText">
                    立即关联
                </span>
                <img src="../../image/rightjiantou.png" alt="">
            </button>
        </div>
        <div class="shonAccount">
            <p>
                账户管理
            </p>
            <ul>
                <li class="goPageBankList">
                    <img src="../../image/iconhfghx.png">
                    <span>
                        收款管理
                    </span>
                    <span>

                    </span>
                </li>
                <li class="goToBcnyPage">
                    <img src="../../image/iconkasax.png">
                    <span>
                        CNY兑换
                    </span>
                    <span>

                    </span>
                </li>
                <li id="newGetout" style="display: none;">
                    <img src="../../image/yejitichrnh.png">
                    <span>
                        业绩提成
                    </span>
                    <span>

                    </span>
                </li>
                <li class="go-page"
                    data-param='{"page":"common/headerwin","name":"meachiencoupon_headerwin","param":{"subpage":"my/meachiencoupon","name":"meachiencoupon","title":"优惠券","couponHeader":"true"}}'>
                    <img src="../../image/iconyouhuiquanx.png">
                    <span>
                        优惠券
                    </span>
                    <span>

                    </span>
                </li>
                <li id="gosafetPage">
                    <img src="../../image/iconanquanshezhi.png">
                    <span>
                        安全设置
                    </span>
                    <span class="showRegText" style="color:#FC553C;font-size: 0.18rem;">
                    </span>
                </li>
            </ul>
        </div>
        <div class="shonAccountOther">
            <p>
                其他服务
            </p>
            <ul>
                <li class="guessingCompetition" style="display: none;">
                    <img src="../../image/suanlijjingc.png" style="width: 0.88rem;height: auto;margin-left: 0.3rem;">
                    <span style="padding-bottom: 0.1rem;">
                        算力竞猜
                    </span>
                </li>
                <!-- <li class="suanlijingrong">
                    <img src="../../image/iconjinrongx.png">
                    <span>
                        挖呗
                    </span>
                </li> -->
                <li id="downBhpayUrl">
                    <img src="../../image/downhp.png">
                    <span>
                        <span id="showbhpaydown"
                            style="display:inline-block; width: 0.15rem;height: 0.15rem;background-color: red;border-radius: 100%;display: none;"></span>
                        下载BHPay
                    </span>
                </li>
                <li class="yaoqinghaiyouClass">
                    <img src="../../image/iconxqax.png">
                    <span>
                        邀请好友
                    </span>
                </li>
                <li id="goService">
                    <img src="../../image/newcinax.png">
                    <span>
                        专属客服
                    </span>
                </li>
                <li id="gosafered">
                    <img src="../../image/iconvqax.png">
                    <span>
                        我的红包
                    </span>
                </li>
                <li class="goEquitysecurity">
                    <img src="../../image/iconsuanlingzhinan.png">
                    <span>
                        算龄指南
                    </span>
                </li>
                <li class="helpCenter">
                    <img src="../../image/iconmqax.png">
                    <span>
                        帮助中心
                    </span>
                </li>
                <li class="aboutMe">
                    <img src="../../image/iconlqax.png">
                    <span>
                        关于我们
                    </span>
                </li>
            </ul>
        </div>
    </div>
</body>
<script src="../../script/autosize.js"></script>
<script src="../../script/fastclick.js"></script>
<script src="../../script/jquery_three_two_one.js"></script>
<script src="../../script/app.js"></script>
<script>
    apiready = function () {
        var app = new APP();
        if (app.ST != "ios") {
            $(".toDayCoinPrice").css("margin-top", "1rem");
        }
        if (app.ST == "ios" && app.isiPhone10 == true) {
            $(".toDayCoinPrice").css("margin-top", "0.8rem");
        }
        var param = {
            debug: true,
            crashlog: true,
            period: 0,
            channel: app.ST,
            appKey: "c2ba5a5484d5b8f3a587bf66"
        };
        var ajAnalytics = api.require('ajAnalytics');
        ajAnalytics.init(param, function (ret, err) {
            app.log(JSON.stringify(ret) + JSON.stringify(err));
        })
        var account = app.getAccount();
        var showStatu = app.getAccountSet().dataStaus; //获取用户是否显示余额
        var isOversea = {}; // 1是身份证实名
        var userMessage = {}; //用户信息
        var isBindBHPay = "";//是否绑定BHpay账号
        var goCerfitionnew = {};
        var bhpayURL = "";//BHPay下载地址
        var totallMoneyPage = 0;//用户总资产
        var renuNum = 0;
        if (!account) return
        app.handlePage();
        $("#newGetout").click(function (params) {
            var newGetout = {
                name: "performance",
                subpage: "salescommission/performance",
                title: "业绩提成",
                rightTitle: "记录",
                param: {
                    pageName: "performance",
                    rightParam: {
                        name: "entry_record",
                        subpage: "salescommission/entry_record",
                        title: "记录",
                        param: {
                            pageName: "entry_record"
                        }
                    }
                }
            }
            app.setNavBarAttr(newGetout);
        })
        function asyncData() {
            app.asynchronousAjax("broadcast/lists", {
                release_location: 2
            }, function (ret) {
                if (ret.code == 200) {
                    var listArr = ret.data.list;
                    if (listArr.length > 0) {
                        $(".toDayCoinPrice").show();
                        $(".shownewbox").css("marginTop", "0.2rem");
                        $(".showMessge").text(listArr[0].title);
                        goCerfitionnew = {
                            name: "noticepage",
                            subpage: "extrapage/noticepage",
                            title: "公告",
                            param: {
                                pageName: "noticepage",
                                content: "<div style='width: 6.9rem;padding:0.47rem 0.4rem 0.6rem 0.47rem;box-sizing: border-box;margin-left: calc((100% - 6.9rem) / 2);background-color: #fff;'><p style='position: relative;width: 100%;display: flex;display: -webkit-flex;align-items: center;justify-content: center;margin: 0.47rem 0;'><b style='font-size: 0.36rem;position: absolute;left: calc((100% - 6rem) / 2);bottom: -0.05rem;z-index: 2;width: 6rem;text-align: center;overflow: hidden;white-space: nowrap;text-overflow:ellipsis;'>" + listArr[0].title + "</b><span style='display: inline-block;width: 3.58rem;height: 0.11rem;background-color: #FEE7A8;'></span></p><p style='font-size:0.26rem;font-family:PingFang SC;font-weight:400;color:rgba(38,38,38,1);line-height:0.6rem;'>" + listArr[0].content + "</p></div>"
                            },
                        };
                    } else {
                        $(".toDayCoinPrice").hide();
                        $(".shownewbox").css("marginTop", "1.2rem");
                    }
                }
            })
        }
        asyncData();
        //异步请求实名状态的数据
        function asyncDataNew() {
            var account = app.getAccount();
            app.asynchronousAjax("member/is-real-apply", {
                token: account.token
            }, function (ret) {
                if (ret.code == 614) {
                    $(".showRegText").text("实名未通过审核");
                } else {
                    $(".showRegText").text("");
                }
            })
        }
        asyncDataNew();
        $(".toDayCoinPrice").on("click", function () {
            if (app.ST == "ios") {
                ajAnalytics.onEvent({
                    eventType: "calculate",
                    eventId: 'announcement',
                    attrs: { "announcement": "announcement" },
                    value: 1
                }, function (ret, err) {
                    console.log(JSON.stringify(ret));
                });
            } else {
                ajAnalytics.onEvent({
                    eventType: "calculate",
                    eventId: 'announcementanzhuo',
                    attrs: { "announcementanzhuo": "announcementanzhuo" },
                    value: 1
                }, function (ret, err) {
                    console.log(JSON.stringify(ret));
                });
            }
            if (!goCerfitionnew) return
            app.setNavBarAttr(goCerfitionnew);
        })
        if (showStatu != "true") {
            hideMoney();
        } else {
            showMoney();
        }
        $(".headAboutLeft").unbind().bind("click", function () {
            app.checkStaus("gocheckPass", function (ret) {
                if (ret == 200) {
                    var pageValue = {
                        name: "getcash",
                        subpage: "mine/getcash",
                        title: "提现",
                        param: {
                            pageName: "getcash",
                            allowEdit: true
                        },
                    };
                    app.setNavBarAttr(pageValue);
                }
            })
        });
        $(".goEquitysecurity").click(function () {
            if (app.ST == "ios") {
                ajAnalytics.onEvent({
                    eventType: "count",
                    eventId: 'goEquitysecurity',
                    attrs: { "goEquitysecurity": "goEquitysecurity" }
                }, function (ret, err) {
                    console.log(JSON.stringify(ret));
                });
            } else {
                ajAnalytics.onEvent({
                    eventType: "count",
                    eventId: 'goEquitysecurityanzhuo',
                    attrs: { "goEquitysecurityanzhuo": "goEquitysecurityanzhuo" }
                }, function (ret, err) {
                    console.log(JSON.stringify(ret));
                });
            }
            var pageValue = {
                name: "equitysecurity",
                subpage: "my/equitysecurity",
                title: "算龄进阶指南",
                // rightTitle: "记录",
                // rightIconUrl: "/image/quanyishuoming.png",
                param: {
                    pageName: "equitysecurity",
                }
            }
            app.setNavBarAttr(pageValue);
        })
        $(".goPageBankList").unbind().bind("click", function () {
            app.checkStaus("gocheckPass", function (ret) {
                if (ret == 200) {
                    var pageValue = {
                        name: "accountmanagement",
                        subpage: "mine/accountmanagement",
                        title: "提现账号管理",
                        param: {
                            pageName: "accountmanagement",
                            allowEdit: true,
                            isOversea: isOversea
                        }
                    }
                    app.setNavBarAttr(pageValue);
                }
            })
        });
        function getCheckStus() {
            $(".goPropertyPage").unbind().bind("click", function () {
                var account = app.getAccount();
                app.ajaxPro({
                    url: "otc/auth",
                    values: {
                        token: account.token
                    },
                    openFlower: true
                }, function (ret) {
                    if (ret.code == 200) {
                        if (ret.data.OTC_USDT != 1 && ret.data.OTC_USDT != 1) {
                            var cointypecontract = {
                                name: "property",
                                subpage: "my/property",
                                title: "我的资产",
                                rightTitle: "资产账单",
                                param: {
                                    pageName: "property",
                                    rightParam: {
                                        name: "reandchare",
                                        subpage: "my/reandchare",
                                        title: "资产账单",
                                        param: {
                                            pageName: "reandchare",
                                            isShow: "false",
                                            isShowOtcProperty: "false"
                                        }
                                    }
                                }
                            }
                        } else {
                            var cointypecontract = {
                                name: "property",
                                subpage: "my/property",
                                title: "我的资产",
                                rightTitle: "资产账单",
                                param: {
                                    pageName: "property",
                                    rightParam: {
                                        name: "reandchare",
                                        subpage: "my/reandchare",
                                        title: "资产账单",
                                        param: {
                                            pageName: "reandchare",
                                            isShow: "false",
                                            isShowOtcProperty: "true"
                                        }
                                    }
                                }
                            }
                        }
                        app.setNavBarAttr(cointypecontract);
                    }
                });
            });
        }
        function checkTezt(account) {
            if (!account) return
            getCheckStus();
        };
        function showMoney() {
            var account = app.getAccount();
            checkTezt(account);
            app.getProperties(account, function (ret) {
                if (ret.code == 200) {
                    isBindBHPay = ret.data.is_bind_bhpay;
                    bhpayURL = ret.data.bhpay_uri;
                    isOversea = ret.data.is_foreign;
                    var thisList = ret.data.lists;
                    renuNum = thisList.auto_renewal_nums;
                    app.trigger('getGrade', ret.data.lists.user_level);//发送等级数据监听
                    if (ret.data.is_bind_bhpay == false) {
                        $("#showbuttonText").css({
                            backgroundColor: "rgb(255, 217, 64)"
                        }).find(".buttonText").text("立即关联").css({
                            color: "#262626"
                        });
                    } else {
                        $("#showbuttonText").css({
                            backgroundColor: "#fff",
                        }).find(".buttonText").text("已关联").css({
                            color: "#898989"
                        });
                    }
                    //业绩提成按钮的显示
                    if (ret.data.state == 1) {
                        $("#newGetout").show();
                    } else {
                        $("#newGetout").hide();
                    }
                    // 上线APP store 屏蔽测试账号为18720000000 UID为810 不显示有关竞猜类型
                    if (ret.data.is_allowd_sljc == 1 && account.uid != "810") {
                        $(".guessingCompetition").show();
                    } else {
                        $(".guessingCompetition").hide();
                    }
                    if (thisList.regular_will_end == 1) {
                        $("#showEndState").css("display", "inline-block");
                    } else {
                        $("#showEndState").css("display", "none");
                    }
                    if (thisList.auto_renewal_nums > 0) {
                        $("#showRenew").css("display", "inline-block");
                    } else {
                        $("#showRenew").css("display", "none");
                    }
                    var showMyproCoin = 0;//币种总资产
                    for (var key in thisList.assets_lists) {
                        showMyproCoin = app.accAdd(showMyproCoin, thisList.assets_lists[key].total_price);
                    }
                    var rentDepist = 0;//租金总资产
                    for (var key in thisList.deposit) {
                        rentDepist = app.accAdd(rentDepist, thisList.deposit[key].price);
                    }
                    totallMoneyPage = app.moreAccAdd(showMyproCoin, rentDepist, thisList.rmb, thisList.yue_otc.total_price, thisList.yue_otc.freeze_total_price, thisList.cny.CNY.freezeAsset);
                    var yesTotal = Number(thisList.yesterday_income.btc_cny_prcie);
                    var changeBtc = String(app.accDiv(totallMoneyPage, thisList.coinPrice.btc_price)).replace(/([0-9]+\.[0-9]{8})[0-9]*/, "$1");
                    $(".hideYdy").text("≈ ");
                    $("#mymoeny span").text((totallMoneyPage == 0 ? "0.00" : app.outputmoney(totallMoneyPage)) + " CNY");
                    $("#changeBtc").text(totallMoneyPage == 0 ? "0.00" : changeBtc);
                    $(".myCnyNumber").text(thisList.rmb);
                    $(".myBcnyNumber").text(thisList.yue_otc.coin);
                    $(".myIcomeCny").text(
                        "￥ " + (yesTotal == 0 ? "--" : app.outputmoney(yesTotal))
                    );
                    if (thisList.yesterday_income.bhp_cny_price == "--") {
                        $(".myIcomeBhp").text(thisList.yesterday_income.bhp_cny_price + "第三方数据获取中").css("fontSize", "0.24rem");
                    } else {
                        $(".myIcomeBhp").text("￥ " + (Number(thisList.yesterday_income.bhp_cny_price) == 0 ? "--" : app.outputmoney(thisList.yesterday_income.bhp_cny_price)));
                    }
                    $("#showImg").attr("src", "../../image/openax.png");
                    $("#showImg").css({
                        width: "0.54rem",
                        height: "0.3rem"
                    });
                    app.mQia.getUnreadMessageCount(function (ret) {
                        if (ret.count > 0) {
                            $("#showService").show();
                        } else {
                            $("#showService").hide();
                        }
                    })
                }
            });
        };

        function hideMoney() {
            var account = app.getAccount();
            checkTezt(account);
            $("#mymoeny>span").text("*******");
            $(".hideYdy").text("");
            $("#changeBtc").text("*******");
            $(".midlle-rigth>span").text("*******");
            $(".myIcomeCny").text("*******");
            $(".myIcomeBhp").text("*******");
            $("#showImg").attr("src", "../../image/closex.png");
            $("#showImg").css({
                width: "0.4rem",
                height: "0.15rem"
            });
            app.getProperties(account, function (ret) {
                if (ret.code == 200) {
                    isBindBHPay = ret.data.is_bind_bhpay;
                    bhpayURL = ret.data.bhpay_uri;
                    isOversea = ret.data.is_foreign;
                    var thisList = ret.data.lists;
                    renuNum = thisList.auto_renewal_nums;
                    var showMyproCoin = 0;//币种总资产
                    for (var key in thisList.assets_lists) {
                        showMyproCoin = app.accAdd(showMyproCoin, thisList.assets_lists[key].total_price);
                    }
                    var rentDepist = 0;//租金总资产
                    for (var key in thisList.deposit) {
                        rentDepist = app.accAdd(rentDepist, thisList.deposit[key].price);
                    }
                    // 上线APP store 屏蔽测试账号为18720000000 UID为810 不显示有关竞猜类型
                    if (ret.data.is_allowd_sljc == 1 && account.uid != "810") {
                        $(".guessingCompetition").show();
                    } else {
                        $(".guessingCompetition").hide();
                    }
                    //业绩提成按钮的显示
                    if (ret.data.state == 1) {
                        $("#newGetout").show();
                    } else {
                        $("#newGetout").hide();
                    }
                    totallMoneyPage = app.moreAccAdd(showMyproCoin, rentDepist, thisList.rmb, thisList.yue_otc.total_price, thisList.yue_otc.freeze_total_price, thisList.cny.CNY.freezeAsset);
                    if (ret.data.is_bind_bhpay == false) {
                        $("#showbuttonText").css({
                            backgroundColor: "rgb(255, 217, 64)"
                        }).find(".buttonText").text("立即关联").css({
                            color: "#262626"
                        });
                    } else {
                        $("#showbuttonText").css({
                            backgroundColor: "#fff",
                        }).find(".buttonText").text("已关联").css({
                            color: "#898989"
                        });
                    }
                    if (thisList.regular_will_end == 1) {
                        $("#showEndState").css("display", "inline-block");
                    } else {
                        $("#showEndState").css("display", "none");
                    }
                    if (thisList.auto_renewal_nums > 0) {
                        $("#showRenew").show();
                    } else {
                        $("#showRenew").hide();
                    }
                }
            });
            app.mQia.getUnreadMessageCount(function (ret) {
                if (ret.count > 0) {
                    $("#showService").show();
                } else {
                    $("#showService").hide();
                }
            })
        };
        function checkIsDownBhpay() {
            app.IsInsatallApp("bhpayapp", "com.bhpay.app", function (ret) {
                if (ret) {
                    $("#showbhpaydown").hide();
                } else {
                    $("#showbhpaydown").show().css("display", "inline-block");
                }
            });
        }
        checkIsDownBhpay();
        //我的合约点击
        $(".goNewmypower").unbind().bind("click", function () {
            var pageValue = {
                name: "newmypower",
                subpage: "mine/newmypower",
                title: "我的合约",
                param: {
                    pageName: "newmypower",
                    isHaveRenew: renuNum
                }
            }
            app.setNavBarAttr(pageValue);
        })
        $("#showEyes").unbind().bind("click", function () {
            var showState = $("#mymoeny").attr("data-flag");
            if (showState == "true") {
                var thisSet = app.getAccountSet();
                thisSet.dataStaus = "false";
                app.setAccount(thisSet);
                $("#mymoeny>span").text("*******");
                $(".midlle-rigth>span").text("*******");
                $(".myIcomeCny").text("*******");
                $(".myIcomeBhp").text("*******");
                $(".hideYdy").text("");
                $("#changeBtc").text("*******");
                $(".myCnyNumber").text("*******");
                $(".myBcnyNumber").text("*******");
                $("#showImg").attr("src", "../../image/closex.png");
                $("#showImg").css({
                    width: "0.4rem",
                    height: "0.15rem"
                });
                $("#mymoeny").attr("data-flag", "false");
            } else {
                var thisSet = app.getAccountSet();
                thisSet.dataStaus = "true";
                app.setAccount(thisSet);
                showMoney();
                $("#mymoeny").attr("data-flag", "true");
            }
        });
        $(".headAboutRight").unbind().bind("click", function () {
            app.rechangChecked();//请求充值实名状态
        });
        $("#gosafetPage").unbind().bind("click", function () {
            app.openWin({
                name: "safetyset",
                url: app.hd + "my/safetyset.html",
                slidBackEnabled: false
            })
        });

        app.downRefresh(function () {
            asyncData();
            asyncDataNew();
            var showStatuNew = app.getAccountSet().dataStaus;
            if (showStatuNew != "true") {
                hideMoney();
            } else {
                showMoney();
            }
            app.trigger("reloadHeader");
        });
        app.listen("gocheckPass", function () {
            // isOversea.type不等于1为海外
            if (isOversea.type == 1 && isOversea.status != -2) {
                var pageValue = {
                    name: "certification",
                    subpage: "my/certification",
                    title: "实名认证",
                    param: {
                        pageName: "certification",
                        userName: isOversea.status == -1 ? "" : isOversea.name,
                        userIdNumber: isOversea.status == -1 ? "" : isOversea.id_num,
                        goMyPage: true
                    }
                }
                app.setNavBarAttr(pageValue);
                return
            }
            var pageValue = {
                name: "choosecerfertion",
                subpage: "my/choosecerfertion",
                title: "实名认证",
                param: {
                    pageName: "choosecerfertion",
                    goMyPage: true
                }
            }
            app.setNavBarAttr(pageValue);
        });
        $(".yaoqinghaiyouClass").click(function () {
            var pageValue = {
                name: "yaoqinghaiyou",
                subpage: "mine/yaoqinghaiyou",
                title: "邀请好友赚奖励",
                param: {
                    pageName: "yaoqinghaiyou"
                }
            }
            app.setNavBarAttr(pageValue);
        })
        $(".goToBcnyPage").unbind().bind("click", function () {
            var pageValue = {
                name: "buyandsellbcny",
                subpage: "my/buyandsellbcny",
                title: "CNY兑换",
                rightTitle: "记录",
                param: {
                    pageName: "buyandsellbcny",
                    rightParam: {
                        name: "sellandbuybcnylist",
                        subpage: "my/sellandbuybcnylist",
                        title: "记录",
                        param: {
                            pageName: "sellandbuybcnylist",
                            showBcny: "true"
                        }
                    }
                }
            }
            app.setNavBarAttr(pageValue);
        });
        $(".goBhpSWpage").unbind().bind("click", function () {
            var param = {
                dtype: "dialog47",
                data: {
                    text: "尊敬的人人矿场用户，应公司合规需要，12月30日起双挖产出的BHP将自动分入同属BHP生态链的BHPay钱包，同时，BHP分红功能也将于1月17日0时起下线迁移至BHPay。请登录BHPay APP查看及操作。",
                    event: "YESKnow"
                }
            };
            app.dialog(param);
        });
        $("#gosafered").unbind().bind("click", function () {
            if (app.ST == "ios") {
                ajAnalytics.onEvent({
                    eventType: "count",
                    eventId: 'gosafered',
                    attrs: { "gosafered": "gosafered" }
                }, function (ret, err) {
                    console.log(JSON.stringify(ret));
                });
            } else {
                ajAnalytics.onEvent({
                    eventType: "count",
                    eventId: 'gosaferedanzhuo',
                    attrs: { "gosaferedanzhuo": "gosaferedanzhuo" }
                }, function (ret, err) {
                    console.log(JSON.stringify(ret));
                });
            }
            app.toast("红包功能升级维护中,敬请期待");
            // var sfczUrl = "https://hb.renrenmine.com/hongbao/#/hongbao/login?from=app&account=" + account;
            // var param = {
            //     name: "hongbaoPage",
            //     url: sfczUrl,
            //     title: "我的红包"
            // }
            // app.setNavBarAttrPrimary(param);
        });
        $(".helpCenter").unbind().bind("click", function () {
            if (app.ST == "ios") {
                ajAnalytics.onEvent({
                    eventType: "count",
                    eventId: 'helpCenter',
                    attrs: { "helpCenter": "helpCenter" }
                }, function (ret, err) {
                    console.log(JSON.stringify(ret));
                });
            } else {
                ajAnalytics.onEvent({
                    eventType: "count",
                    eventId: 'helpCenteranzhuo',
                    attrs: { "helpCenteranzhuo": "helpCenteranzhuo" }
                }, function (ret, err) {
                    console.log(JSON.stringify(ret));
                });
            }
            var pageValue = {
                name: "help",
                subpage: "mainpage/help",
                title: "帮助中心",
                param: {
                    pageName: "help"
                }
            }
            app.setNavBarAttr(pageValue);
        });
        $(".aboutMe").click(function () {
            if (app.ST == "ios") {
                ajAnalytics.onEvent({
                    eventType: "count",
                    eventId: 'aboutMe',
                    attrs: { "aboutMe": "aboutMe" }
                }, function (ret, err) {
                    console.log(JSON.stringify(ret));
                });
            } else {
                ajAnalytics.onEvent({
                    eventType: "count",
                    eventId: 'aboutMeanzhuo',
                    attrs: { "aboutMeanzhuo": "aboutMeanzhuo" }
                }, function (ret, err) {
                    console.log(JSON.stringify(ret));
                });
            }
            var pageValue = {
                name: "about",
                subpage: "mine/about",
                title: "关于我们",
                allowEdit: true,
                param: {
                    pageName: "about",
                    allowEdit: true
                }
            }
            app.setNavBarAttr(pageValue);
        })
        //算力竞猜点击
        $(".guessingCompetition").unbind().bind("click", function () {
            if (app.ST == "ios") {
                ajAnalytics.onEvent({
                    eventType: "count",
                    eventId: 'guessingCompetition',
                    attrs: { "guessingCompetition": "guessingCompetition" }
                }, function (ret, err) {
                    console.log(JSON.stringify(ret));
                });
            } else {
                ajAnalytics.onEvent({
                    eventType: "count",
                    eventId: 'guessingCompetitionanzhuo',
                    attrs: { "guessingCompetitionanzhuo": "guessingCompetitionanzhuo" }
                }, function (ret, err) {
                    console.log(JSON.stringify(ret));
                });
            }
            app.checkStaus("gocheckPass", function (ret) {
                if (ret == 200) {
                    if (isBindBHPay == true) {
                        app.ajaxPro({
                            url: "site/geturl",
                            values: {},
                            openFlower: true
                        }, function (ret) {
                            var pageUrl = ret.data.url;
                            var recodeList = ret.data.sljc_list_url;
                            // var recodeList = "http://oauthfront.t1.anmaicloud.com/users/test";
                            app.openWin({
                                name: "suanlijingcai",
                                url: app.hd + "common/headerwin.html",
                                pageParam: {
                                    subpage: recodeList,
                                    name: "suanlijingcai",
                                    type: "remote",
                                    isremote: "true",
                                    title: "我的竞猜"
                                }
                            });
                        })
                    } else {
                        var param = {
                            dtype: "dialog11",
                            data: {
                                title: "提示",
                                text: "算力竞猜，奖励中包含BHP奖励，请先完成BHP账户关联",
                                btns: [{
                                    name: "取消",
                                    event: "canalOt"
                                }, {
                                    name: "确定",
                                    event: "goLineBhp"
                                }]
                            }
                        };
                        app.dialog(param);
                    }
                }
            })
        });
        app.listen("goLineBhp", function () {
            var param = {
                dtype: "dialog41"
            };
            app.dialog(param);
            setTimeout(function () {
                app.getBhpayURL(account, function (ret) {
                    app.closeF("dialog");
                    if (ret.code == 200) {
                        app.openWin({
                            name: "browser_headerwin",
                            url: app.hd + "common/headerwin.html",
                            pageParam: {
                                subpage: ret.data,
                                name: "browser",
                                type: "remote",
                                isremote: "true",
                                title: "BHPay",
                                openBHpay: 'true'
                            }
                        });
                    } else {
                        app.toast(ret.message);
                    }
                })
            }, 2000);
        })
        //算力金融点击
        $(".suanlijingrong").on("click", function () {
            if (app.ST == "ios") {
                ajAnalytics.onEvent({
                    eventType: "count",
                    eventId: 'suanlijingrong',
                    attrs: { "suanlijingrong": "suanlijingrong" }
                }, function (ret, err) {
                    console.log(JSON.stringify(ret));
                });
            } else {
                ajAnalytics.onEvent({
                    eventType: "count",
                    eventId: 'suanlijingronganzhuo',
                    attrs: { "suanlijingronganzhuo": "suanlijingronganzhuo" }
                }, function (ret, err) {
                    console.log(JSON.stringify(ret));
                });
            }
            app.toast("服务升级中,敬请期待");
            return
            app.checkStaus("gocheckPass", function (ret) {
                if (ret == 200) {
                    var readArgment = app.parse(app.getSyncStorage("readArgment"));
                    if (readArgment && readArgment == true) {
                        app.trigger("minepageAreement");
                        return false
                    } else {
                        app.setStorage("readArgment", "false");
                    }
                    var account = app.getAccount();
                    app.ajaxPro({
                        url: "hilink/get-note",
                        values: {
                            token: account.token
                        },
                        openFlower: true
                    }, function (ret) {
                        if (ret.code == 200) {
                            var param = {
                                dtype: "dialog87",
                                data: {
                                    text: ret.data.contract.content,
                                    event: "minepageAreement"
                                }
                            };
                            app.dialog(param);
                        } else {
                            app.toast(ret.message);
                        }
                    })
                }
            })
        });
        //监听算力金融的协议
        app.listen("minepageAreement", function () {
            app.setStorage("readArgment", "true");
            var account = app.getAccount();
            app.ajaxPro({
                url: "hilink/home",
                values: {
                    token: account.token
                },
                openFlower: true
            }, function (ret) {
                var recodeList = ret.data;
                app.openWin({
                    name: "suanlijinrong",
                    url: recodeList,
                    slidBackEnabled: false
                })
            })
        })
        $("#goService").unbind().bind("click", function () {
            var account = app.getAccount();
            app.mQia.setScheduledAgentOrAgentGroup(app.ST == "ios" ? {
                agentGroup: "3c1ec6a2acfec110648e88850f40de8a",
                agentId: "",
                scheduleRule: "group"
            } : {
                    agentGroup: "3c1ec6a2acfec110648e88850f40de8a",
                    scheduleRule: "group"
                });
            app.mQia.setTitleColor({
                color: "#ffd203"
            });
            app.mQia.setClientInfo({
                avatar: account.avatar,
                tel: account.telphone,
                name: account.user_name
            });
            app.mQia.show({
                showAvatar: true
            });
        });
        $("#downBhpayUrl").click(function () {
            if (app.ST == "ios") {
                ajAnalytics.onEvent({
                    eventType: "count",
                    eventId: 'downBhpayUrl',
                    attrs: { "downBhpayUrl": "downBhpayUrl" }
                }, function (ret, err) {
                    console.log(JSON.stringify(ret));
                });
            } else {
                ajAnalytics.onEvent({
                    eventType: "count",
                    eventId: 'downBhpayUrlanzhuo',
                    attrs: { "downBhpayUrlanzhuo": "downBhpayUrlanzhuo" }
                }, function (ret, err) {
                    console.log(JSON.stringify(ret));
                });
            }
            app.openSysNavi(bhpayURL);
        })
        // , "viewappear"
        var events = ["auth_commit_success", 'toPageMine', "viewappear"];
        app.listen(events, function () {
            var showStatuNew = app.getAccountSet().dataStaus;
            if (showStatuNew != "true") {
                hideMoney();
            } else {
                showMoney();
            }
            checkIsDownBhpay();
            asyncData();
            asyncDataNew();
            app.trigger("reloadHeader");
        });
        $("#showbuttonText").on("click", function () {
            app.checkStaus("gocheckPass", function (ret) {
                if (ret == 200) {
                    // 审核通过
                    if (isBindBHPay == true) {
                        var pageValue = {
                            name: "relateaccount",
                            subpage: "mine/relateaccount",
                            title: "关联BHPAY账户",
                            param: {
                                pageName: "relateaccount"
                            }
                        }
                        app.setNavBarAttr(pageValue);
                    } else {
                        var param = {
                            dtype: "dialog41"
                        };
                        app.dialog(param);
                        setTimeout(function () {
                            app.getBhpayURL(account, function (ret) {
                                app.closeF("dialog");
                                if (ret.code == 200) {
                                    app.openWin({
                                        name: "browser_headerwin",
                                        url: app.hd + "common/headerwin.html",
                                        pageParam: {
                                            subpage: ret.data,
                                            name: "browser",
                                            type: "remote",
                                            isremote: "true",
                                            title: "BHPay",
                                            openBHpay: 'true'
                                        }
                                    });
                                    // var param = {
                                    //     name: "BHPayBorser",
                                    //     url: ret.data,
                                    //     title: "BHPay",
                                    //     param: {
                                    //         openBHpay: 'true'
                                    //     }
                                    // }
                                    // app.setNavBarAttrPrimary(param);
                                } else {
                                    app.toast(ret.message);
                                }
                            })
                        }, 1500);
                    }
                }
            })
        });
        $(".goMyincome").on("click", function () {
            var cointypecontract = {
                name: "new_myincome",
                subpage: "mine/new_myincome",
                title: "算力产出",
                rightTitle: "折线图",
                rightIconUrl: "/image/suanlitongji.png",
                param: {
                    pageName: "new_myincome",
                    isIconStyle: "true",
                    isOversea: isOversea
                }
            };
            // if (Number(totallMoneyPage) <= 0) {
            //     cointypecontract = {
            //         name: "blank_producepage",
            //         subpage: "mine/blank_producepage",
            //         title: "算力产出",
            //         rightTitle: "折线图",
            //         rightIconUrl: "/image/suanlitongji.png",
            //         param: {
            //             pageName: "blank_producepage",
            //             isIconStyle: "true",
            //             isOversea: isOversea,
            //         }
            //     }
            // } else {
            //     cointypecontract = {
            //         name: "new_myincome",
            //         subpage: "mine/new_myincome",
            //         title: "算力产出",
            //         rightTitle: "折线图",
            //         rightIconUrl: "/image/suanlitongji.png",
            //         param: {
            //             pageName: "new_myincome",
            //             isIconStyle: "true",
            //             isOversea: isOversea,
            //         }
            //     }
            // }
            app.setNavBarAttr(cointypecontract);
        });
        app.listen("YESIKNOW", function () {
            var pageValue = {
                name: "littlemoneyrecharge",
                subpage: "extrapage/littlemoneyrecharge",
                title: "充值",
                param: {
                    pageName: "littlemoneyrecharge",
                    goMyPage: true
                },
                allowEdit: true
            }
            app.setNavBarAttr(pageValue);
        })
        $("#goAgrentSellBuy").unbind().bind("click", function () {
            app.getBhpayAbout(function (ret) {
                if (ret.code == 200) {
                    var param = {
                        dtype: "dialog40",
                        isshowButton: "true"
                    };
                    app.dialog(param);
                } else {
                    var param = {
                        dtype: "dialog40",
                        isshowButton: "false"
                    };
                    app.dialog(param);
                }
            })
            app.listen("goOutCoinPage", function () {
                app.checkStaus("gocheckPassnew", function (ret) {
                    if (ret == 200) {
                        // 审核通过
                        var pageValue = {
                            name: "mentionmoney",
                            subpage: "my/mentionmoney",
                            title: "提币",
                            param: {
                                pageName: "mentionmoney"
                            }
                        }
                        app.setNavBarAttr(pageValue);
                    }
                })
                app.listen("gocheckPassnew", function () {
                    if (isOversea.type == 1 && isOversea.status != -2) {
                        var pageValue = {
                            name: "certification",
                            subpage: "my/certification",
                            title: "实名认证",
                            param: {
                                pageName: "certification",
                                userName: isOversea.status == -1 ? "" : isOversea.name,
                                userIdNumber: isOversea.status == -1 ? "" : isOversea.id_num,
                                goMyPage: true
                            }
                        }
                        app.setNavBarAttr(pageValue);
                        return
                    }
                    var pageValue = {
                        name: "choosecerfertion",
                        subpage: "my/choosecerfertion",
                        title: "实名认证",
                        param: {
                            pageName: "choosecerfertion",
                            goMyPage: true
                        }
                    }
                    app.setNavBarAttr(pageValue);
                });
            })
        })
        app.listen("checkRealName", function () {
            var pageValue = {
                name: "choosecerfertiontwo",
                subpage: "my/choosecerfertiontwo",
                title: "实名校验",
                param: {
                    pageName: "choosecerfertiontwo",
                    goAddMoney: true
                }
            }
            app.setNavBarAttr(pageValue);
        });
        app.resume(function () {
            app.trigger("toPageMine");
        });
    };
</script>

</html>
